﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Selector - Content Filter</title>
    <script src="script/jquery-1.3.2.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        function cari() {
            var katakunci = $("#katakunci").val();
            //alert("div:contains('" + katakunci + "')");
            $("div").css("text-decoration", "none");
            $("div:contains('" + katakunci + "')").css("text-decoration", "underline");
        }
    </script>
</head>
<body>
    <input type="text" id="katakunci" name="katakunci" />
    <input type="button" value="Cari" onclick="cari()" />
    
    <div>
    When I first set out to create jQuery I decided that I wanted an emphasis on
    small, simple code that served all the practical applications that web developers
    deal with day to day. I was greatly pleased as I read through jQuery in Action to
    see in it an excellent manifestation of the principles of the jQuery library.
    </div>
    <div>
    With an overwhelming emphasis on practical, real-world code presented in
    a terse, to-the-point format, this book will serve as an ideal resource for
    those looking to familiarize themselves with the library.
    </div>
</body>
</html>
